# Contributor: Leon ROUX <leon.roux@federate.us>
# Maintainer: Leon ROUX <leon.roux@federate.us>
pkgname=sc3plugins
pkgver=3.11.1
pkgrel=0
pkgdesc="Community plugins for SuperCollider"
url="https://supercollider.github.io/sc3-plugins/"
arch="x86_64 x86 aarch64 armv7" # blocked by supercollider
license="GPL-3.0-or-later"
makedepends="
	cmake
	fftw-dev
	samurai
	supercollider-dev
	"
source="https://github.com/supercollider/sc3-plugins/releases/download/Version-$pkgver/sc3-plugins-$pkgver-Source.tar.bz2"
builddir="$srcdir/sc3-plugins-$pkgver-Source"
options="!check" # no tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DSUPERNOVA=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
5ba79f4e691615ac2a508bad2043a64ab1359cd88f1cf3a258cb3cc218a2d4d2d077d91ad86ff87df4896b8f42ab711b847cb67d9aebbdc9208e1c88513b25aa  sc3-plugins-3.11.1-Source.tar.bz2
"
